using System;

namespace Portal.Workflow.Model
{
	/// <summary>
	/// Summary description for LinkCls.
	/// </summary>
	public class LinkCls
	{
		public string LinkId=System.Guid.NewGuid().ToString();
		public string LinkName = "";
		public string fromNodeId="";
		public string toNodeId = "";
		public string conditionAction = "";
        public string conditionActionChecks = "";
		public string targetAction = "";
		public string NextViewParam ="";
        public string RunFunctionId = "";
        public string ExecuteReportFile = "";
        public string Tooltip = "";
        
        public string RoleRelationTemplateId = "";
        public string RoleRelationTemplateXmlData = "";

        public string ViewRoleRelationTemplateId = "";
        public string ViewRoleRelationTemplateXmlData = "";

		public int ForAllEmployeeInRole=1;
        public int FinishThisTask = 0;
        public int Visible = 1;
        public int ActiveRunSubWorkflow = 0;
        public int ZOrder = 0;
        public object Link;//Lassalle.Flow.Link
        public RunSubWorkflowCls[] RunSubWorkflow = new RunSubWorkflowCls[0];
        public string XmlData = "";
        public string SendDedicateUserFunction = "";
        public int CheckOffice = 0;
        public int CheckRelation = 0;
        //public string WaitingSubProcess = "";
        public string ReturnLinkId="";
        public string SubProcessDoneStatus = "STOP";
        public string[] RoleIds = new string[0];
        public string[] RoleNames = new string[0];

        public string[] ViewRoleIds = new string[0];
        public string[] ViewRoleNames = new string[0];

        public string WaitType = "";
        public string LinkType = "Sequence";
        public int ProcessDays = 2;
        public int SortIndex = 1;
        public int DeleteAfterNext = 1;
        public int SendRoleType = 1;//check role...!
        public string RoleAllowStartFromFirstProcessId = "";
        public string PlugInNextActivityId = "";
        public bool ShowOwner = false;
        public int NextForStatus=0;
        public int GetForProcess = 0;
        public int SelectUser = 0;
        public string NextLinkInfoText = "";
        public string ButtonLink = "";
        public string LinkButtonStatusId = "";//dung de check trang thai cua button va links cho phep hien an
        public string DetectRoleServiceId = "";//dung de kiem tra cac role nao duoc chuyen

        public string LinkCss = "";
        public LinkCls(string _LinkId,string _LinkName)
		{
			LinkId = _LinkId;
			LinkName = _LinkName;
		}
	}
}
